 <?php 
require_once 'config.php';
 
print "<html>";
print "<head>";
print "<title></title>";
print "<script type=\"text/javascript\" src=\"js/sha.js\"></script>";
print "</head>";
print "<body>";

$path = "index.php";;
if (SERVER != 'localhost')
	$path = HTTPS_PATH;
	
print "<form action=\"".$path."\" onsubmit=\"Sha1.EncodeAddUser()\" method=\"post\">";
print "User: <input type=\"text\" name=\"id\" id=\"userId\"/><br />";
print "Gender: <input type=\"text\" name=\"gender\" id=\"userGender\"/><br />";
print "Password: <input type=\"password\" name=\"userHash\" id=\"userHash\"/><br />";
print "Admin Password: <input type=\"password\"  name=\"adminHash\" id=\"adminHash\"/><br />";
print "<button>Add User</button>";
print "<input type=\"hidden\" name=\"cmd\" value=\"addUser\"/><br />";
print "</form>";
	
    
print "</body>";
print "</html>";
 ?> 